package cn.tedu.gateway.beijing.controller;

import org.springframework.web.bind.annotation.*;

import java.time.ZonedDateTime;

@RestController
@RequestMapping("/bj")
public class BeiJingController {

    @RequestMapping("/show")
    public String show(@RequestParam("age")Integer age, @RequestHeader("X-color")String header){
        /**
         * ZonedDateTime 来获取到当前的时间
         */
        ZonedDateTime now = ZonedDateTime.now();
        System.out.println(now);
        return "欢迎来到北京~,老赵今年芳龄"+age+",喜欢的颜色是"+header;
    }
}
